package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.stylefeng.guns.common.annotion.Point;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 *  师带徒
 * </p>
 *
 * @author rockjh
 * @since 2018-01-29
 */
@TableName("mentoring_relation")
public class MentoringRelation extends Model<MentoringRelation> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.UUID)
	private String id;
	/**
	 * 年度
	 */
	@Excel(name = "年度",width = 20)
	private String year;
    /**
     * 师傅编号
     */
	@TableField("master_emp_code")
	@Excel(name = "师傅编号",width = 20)
	private String masterEmpCode;
    /**
     * 师傅姓名
     */
	@TableField("master_emp_name")
	@Excel(name = "师傅姓名",width = 20)
	private String masterEmpName;
    /**
     * 协议期限编码
     */
	@TableField("protocal_term_code")
	private String protocalTermCode;
    /**
     * 徒弟编号
     */
	@TableField("apprentice_emp_code")
	@Excel(name = "徒弟编号",width = 20)
	private String apprenticeEmpCode;
    /**
     * 徒弟姓名
     */
	@TableField("apprentice_emp_name")
	@Excel(name = "徒弟姓名",width = 20)
	private String apprenticeEmpName;
	/**
	 * 签订日期
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@TableField("sign_date")
	@Excel(name = "签订日期", databaseFormat = "yyyy-MM-dd", format = "yyyy-MM-dd",width = 20)
	private Date signDate;

	@TableField(exist=false)
	private String strSignDate;
	/**
	 * 协议期限
	 */
	@TableField("protocal_term")
	@Excel(name = "协议期限",width = 20)
	private String protocalTerm;
    /**
     * 考核结果
     */
	@TableField("examine_result")
	@Excel(name = "徒弟考核结果",width = 20)
	private String examineResult;
	/**
	 * 积分
	 */
	@Excel(name = "积分",width = 15)
	@TableField(exist = false)
	private Double integral;
    /**
     * 考核结果编码
     */
	@TableField("examine_result_code")
	private String examineResultCode;
    /**
     * 创建日期
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 数据来源
     */
	@TableField("data_origin")
	private String dataOrigin;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMasterEmpCode() {
		return masterEmpCode;
	}

	public void setMasterEmpCode(String masterEmpCode) {
		this.masterEmpCode = masterEmpCode;
	}

	public String getMasterEmpName() {
		return masterEmpName;
	}

	public void setMasterEmpName(String masterEmpName) {
		this.masterEmpName = masterEmpName;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public Date getSignDate() {
		return signDate;
	}

	public void setSignDate(Date signDate) {
		this.signDate = signDate;
	}

	public String getProtocalTerm() {
		return protocalTerm;
	}

	public void setProtocalTerm(String protocalTerm) {
		this.protocalTerm = protocalTerm;
	}

	public String getProtocalTermCode() {
		return protocalTermCode;
	}

	public void setProtocalTermCode(String protocalTermCode) {
		this.protocalTermCode = protocalTermCode;
	}

	public String getApprenticeEmpCode() {
		return apprenticeEmpCode;
	}

	public void setApprenticeEmpCode(String apprenticeEmpCode) {
		this.apprenticeEmpCode = apprenticeEmpCode;
	}

	public String getApprenticeEmpName() {
		return apprenticeEmpName;
	}

	public void setApprenticeEmpName(String apprenticeEmpName) {
		this.apprenticeEmpName = apprenticeEmpName;
	}

	public String getExamineResult() {
		return examineResult;
	}

	public void setExamineResult(String examineResult) {
		this.examineResult = examineResult;
	}

	public String getExamineResultCode() {
		return examineResultCode;
	}

	public void setExamineResultCode(String examineResultCode) {
		this.examineResultCode = examineResultCode;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getDataOrigin() {
		return dataOrigin;
	}

	public void setDataOrigin(String dataOrigin) {
		this.dataOrigin = dataOrigin;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Double getIntegral() {
		return integral;
	}

	public void setIntegral(Double integral) {
		this.integral = integral;
	}

	public String getStrSignDate() {
		return strSignDate;
	}

	public void setStrSignDate(String strSignDate) {
		this.strSignDate = strSignDate;
	}

	@Override
	public String toString() {
		return "MentoringRelation{" +
			"id=" + id +
			", masterEmpCode=" + masterEmpCode +
			", masterEmpName=" + masterEmpName +
			", year=" + year +
			", signDate=" + signDate +
			", protocalTerm=" + protocalTerm +
			", protocalTermCode=" + protocalTermCode +
			", apprenticeEmpCode=" + apprenticeEmpCode +
			", apprenticeEmpName=" + apprenticeEmpName +
			", examineResult=" + examineResult +
			", examineResultCode=" + examineResultCode +
			", createDate=" + createDate +
			", dataOrigin=" + dataOrigin +
			"}";
	}
}
